package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.transaction.annotation.Transactional;

public class HelloServiceImpl {
    @Service(interfaceClass = HelloService.class)
    @Transactional
    public class HelloController implements HelloService {
        @Override
        public String sayHello() {
            Page<Object>page= PageHelper.startPage(1,100);
            page.getTotal();
            return "ok";
        }
    }
}
